@extends('admin.layout.index')
@section('content')
<div class="mws-panel grid_8">
			<div class="mws-panel-header">
		    	<span>相册添加</span>
		    </div>
		    <div class="mws-panel-body no-padding">
		    	<form class="mws-form" action="/admin/photo/insert" method="post"  enctype="multipart/form-data">
		    	{{csrf_field()}}
		    		<div class="mws-form-inline">
		    		 <div class="mws-form-row">
                        <label class="mws-form-label">所属分类</label>
                        <div class="mws-form-item">
                            <select style="width:400px" name="cid">
                              <option value="0">--请选择--</option>
                              @foreach($data as $k=>$v)
                              <option value="{{$v['id']}}" >{{$v['name']}}</option>
                              @endforeach
                           </select>
                        </div>
                    </div>
                     <div class="mws-form-row">
                        <label class="mws-form-label">所属页面</label>
                        <div class="mws-form-item">
                            <select style="width:400px" name="cate">
                              <option value="">--请选择--</option>
                              <option value="1" >首页</option>
                              <option value="2" >产品</option>
                              <option value="3" >商城</option>
                              <option value="4" >公告</option>
                              <option value="5" >服务</option>
                           </select>
                        </div>
                    </div>
		    			<div class="mws-form-row">
		    				<label class="mws-form-label">相册标题</label>
		    				<div class="mws-form-item">
		    					<input class="small" type="text" name="title" value="">
		    				</div>
		    			</div>
		    		<div class="mws-form-row">
                    		<label class="mws-form-label">相册内容</label>
                    		<div class="mws-form-item">

                    		<textarea name="count" id="container" cols="30" rows="10" >
                    			  
                    		</textarea>
                    <!-- 配置文件 -->
			    <script type="text/javascript" src="/u/ueditor.config.js"></script>
			    <!-- 编辑器源码文件 -->
			    <script type="text/javascript" src="/u/ueditor.all.js"></script>
			    <!-- 实例化编辑器 -->
			    <script type="text/javascript">
			        var ue = UE.getEditor('container');
			    </script>
				</div>
          </div>
          <div class="mws-form-row">
                <label class="mws-form-label">url地址</label>
                <div class="mws-form-item">
                  <input class="small" type="text" name="url" value="">
              </div>
           </div>
				 <div class="mws-form-row" style="width:660px;display:inline-block">
                    <label class="mws-form-label">图片</label>
                    <div class="mws-form-item" >
                        <input type="file" name="pic" value="">
                    </div>
                </div>
		    		</div>
		    		<div class="mws-button-row">
		    			<input value="提交" class="btn btn-danger" type="submit">
		    			<input value="重置" class="btn " type="reset">
		    		</div>
		    	</form>
		    </div>    	
		</div>
@endsection